
from django.contrib import admin
from article.models import Article,Tag,Catagory

class TagAdmin(admin.ModelAdmin):
    class Meta:
        list_display = ('tag')

class CatagoryAdmin(admin.ModelAdmin):
    class Meta:
        list_display = ('catagory')
    

class ArticleAdmin(admin.ModelAdmin):
    class Meta:
        list_display = ('avatar','title','content','tags','catagory')

admin.site.register(Tag,TagAdmin)
admin.site.register(Catagory,CatagoryAdmin)
admin.site.register(Article,ArticleAdmin)